
    <div ng-if="!noPermission">
        <div class="album wp-20 program-audit" ui-view="container">
        <div class="head_title" ng-show="!albumId">
            <span class="tit-color">节目审核</span>
        </div>
        <div class="head_title" ng-show="albumId">
            <span class="jump-color" ui-sref="main.album({pageNo:1})">专辑审核</span>
            <span class="tit-color"> / 节目管理</span>
        </div>
        <div class="searchWapper white-background">
            <div class="form-group searchLump search-condition">
                <div class="form-group searchLump search-condition">
                    <div class="searchTitle">搜索：</div>
                    <div class="search-select">
                        <select ng-model="search.key"
                                ng-options="fileName.key  as fileName.value for fileName in fileNames"
                                style="float: left"></select>
                        <input type="text" class="input width-150" ng-model="search.value"
                               ui-event="{ keyup : 'keyup($event,search.value)' }">
                        <input type="button" class="btn btn-primary" style="margin-top: -3px" value="搜索"
                               ng-click="findData()">

                    </div>
                </div>
            </div>

            <div class="form-group searchLump">
                <div class="searchTitle">筛选：</div>
                <div class="search-select">
                    <select ng-model="search.channelId" ng-show="!albumId"
                            ng-options="channel.channelId  as channel.channelName for channel in channels"
                            ng-change="channelChange()">

                    </select>


                    <select ng-model="search.reviewStatus"
                            ng-options="status.key  as status.value for status in checkStatus"
                            ng-change="reviewStatusChange()"></select>
                    <select ng-model="search.adminId"
                            ng-options="admin.adminId  as admin.fullName for admin in adminList"
                            ng-change="adminChange()"></select>
                </div>

            </div>
        </div>

            <div class="table-responsive" style="margin-top: 15px;">


            <table class="table table-bordered table-hover table-page" ng-show="!albumId||(albumId&&(search.keyword||search.reviewStatus||search.adminId))">
                <thead>
                <tr>

                    <th>节目_ID</th>
                    <th>节目名称</th>
                    <th>专辑名称</th>
                    <th>一级频道</th>
                    <th>二级频道</th>
                    <th>时长</th>
                    <th>上传时间</th>
                    <th>审核时间</th>
                    <th>审核状态</th>
                    <th>审核人</th>
                    <!--<th>播控状态</th>-->
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="program in programList">

                    <td>{{program.programId}}</td>
                    <td>{{program.programName}}</td>
                    <td>{{program.albumName}}</td>
                    <td>{{program.categoryName}}</td>
                    <td>{{program.channelName}}</td>
                    <td>{{program.duration}}</td>
                    <td>{{program.cTime}}</td>
                    <td>{{program.reviewTime}}</td>
                    <td class="{{program.reviewStatus|statusColor}}">
                        {{table[program.reviewStatus]}}
                    </td>
                    <td>{{program.adminName}}</td>
                    <!--<td>{{table[program.playStatus]}}</td>-->
                    <td>
                        <a ng-show="albumId" ui-sref="main.album.program.edit({programId:program.programId})">
                            编审
                        </a>
                        <a ng-show="!albumId" ui-sref="main.programAudit.manage({programId:program.programId})">
                            编审
                        </a>
                        <a ng-show="albumId" uib-popover-template="'pop-tpl.html'" class="time-out"
                           popover-is-open="program.popOpen" ng-click="itemClick(program.programId)">调序</a>


                    </td>
                </tr>
                </tbody>
            </table>
            <table class="table table-bordered table-hover table-page" ng-show="albumId&&(!search.keyword&&!search.reviewStatus&&!search.adminId)">
                <thead>
                <tr>

                    <th class="col-lg-1">序号</th>
                    <th class="col-lg-1">节目_ID</th>
                    <th class="col-lg-2">节目名称</th>
                    <th class="col-lg-2">专辑名称</th>
                    <th class="col-lg-1">时长</th>
                    <th class="col-lg-1">上传时间</th>
                    <th class="col-lg-1">审核时间</th>
                    <th class="col-lg-1">审核状态</th>
                    <th class="col-lg-1">审核人</th>
                    <!--<th>播控状态</th>-->
                    <th class="col-lg-1">操作</th>
                </tr>
                </thead>
                <tbody ui-sortable="sortableOptions" class="body" ng-model="programList">
                <tr ng-repeat="program in programList" style="cursor: move">

                    <td class="col-lg-1">{{program.sort}}</td>
                    <td class="col-lg-1">{{program.programId}}</td>
                    <td class="col-lg-2">{{program.programName}}</td>
                    <td class="col-lg-2">{{program.albumName}}</td>
                    <td class="col-lg-1">{{program.duration}}</td>
                    <td class="col-lg-1">{{program.cTime}}</td>
                    <td class="col-lg-1">{{program.reviewTime}}</td>
                    <td class="{{program.reviewStatus|statusColor}} col-lg-1">
                        {{table[program.reviewStatus]}}
                    </td>
                    <td class="col-lg-1">{{program.adminName}}</td>
                    <!--<td>{{table[program.playStatus]}}</td>-->
                    <td class="col-lg-1">
                        <a ng-show="albumId" ui-sref="main.album.program.edit({programId:program.programId})">
                            编审
                        </a>
                        <a ng-show="!albumId" ui-sref="main.programAudit.manage({programId:program.programId})">
                            编审
                        </a>
                        <a ng-show="albumId" uib-popover-template="'pop-tpl.html'" class="time-out"
                           popover-is-open="program.popOpen" ng-click="itemClick(program.programId)">调序</a>


                    </td>
                </tr>
                </tbody>
            </table>


        </div>
        <div class="panel-footer paging">
            <s-pagination conf="paginationConf"></s-pagination>
        </div>

    </div>


</div>

<div ng-if="noPermission" ng-include="'templates/no-permission.html'"></div>